package com.guoyw.dubbo.member.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * author: guoyw
 * create: 2020-09-11 16:52
 **/
@Data
@TableName("user")
public class User implements Serializable{
  
  @TableId(value = "id",type = IdType.ID_WORKER)
  private Integer id;
  
  @TableField(value = "name")
  private String name;
  
  @TableField(value = "sex")
  private String sex;
  
  @TableField(value = "sex2")
  private String sex2;
  
  @TableField(value = "age")
  private Integer age;
  
}
